﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class ParticleControl : MonoBehaviour {
    // Use this for initialization
    void Start () {
        ParticleSystem ps = GetComponent<ParticleSystem>();
        var main = ps.main;
        var em = ps.emission;
        var em1 = ps.velocityOverLifetime;
        em1.enabled = true;
        main.startDelay = 5.0f;
        main.startLifetime = 2.0f;
        em.rateOverTime = 0;
        em.rateOverDistance = 0;
    }
	
	// Update is called once per frame
	void Update () {
		
	}
}
